<script language="javascript">
<!--
function f_purchase_imp() {
	if (!trselObj.f_isSelectRow()) return false;

	var frmObj = window.top.frames("frmdata");
	//var plan_stock_id = frmObj.trselObj.f_getTDValueByKeyName(frmObj.trselObj.getCurKeyid() ,"plan_stock_material.plan_stock_id");
	//alert("f_selfAdd(): plan_stock_id = " + plan_stock_id);

	var frmObj = document.forms(formName);

	frmObj.ActionType.value = "impself";
	var action = frmObj.action.split("?")[0];
	//frmObj.action = action + "?plan_stock_id=" + plan_stock_id;
	frmObj.target = targetName;
	frmObj.submit();

	document.all("impself").disabled = true;
}

function f_dbclick_method() {
	//var pageType = document.all("pageType").value;
	var pageType = f_getPageType();
	if (pageType == "impself") {
		f_purchase_imp();
	}
}
//-->
</script>